Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Capella decode and fallback to bellatrix #431

Merged
merged 2 commits into from
Jan 20, 2023
Merged

Conversation

avalonche
Copy link
Collaborator

@avalonche avalonche commented Dec 20, 2022

📝 Summary

More context in #411.

As part of #392 this PR attempts to decode the getPayload call with capella types (from attestant) and then decode with bellatrix types (from go-boost-utils) as a fallback.

⛱ Motivation and Context

📚 References

waiting on attestantio/go-builder-client#2 as attestant types don't have support for capella yet for relay responses.


✅ I have run these commands

  • make lint
  • make test-race
  • go mod tidy

@codecov-commenter
Copy link

codecov-commenter commented Jan 5, 2023

Codecov Report

Merging #431 (8cb9cca) into main (ef4cc85) will increase coverage by 0.46%.
The diff coverage is 63.03%.

@@            Coverage Diff             @@
##             main     #431      +/-   ##
==========================================
+ Coverage   65.60%   66.06%   +0.46%     
==========================================
  Files           7        7              
  Lines         907     1049     +142     
==========================================
+ Hits          595      693      +98     
- Misses        275      309      +34     
- Partials       37       47      +10     
Flag Coverage Δ
unittests 66.06% <63.03%> (+0.46%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
server/mock_relay.go 84.90% <55.55%> (-2.03%) ⬇️
server/service.go 75.65% <59.13%> (-1.41%) ⬇️
server/utils.go 75.00% <75.60%> (-0.68%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@metachris
Copy link
Collaborator

lgtm!

@metachris metachris merged commit 12974b4 into main Jan 20, 2023
@metachris metachris deleted the capella-getpayload branch January 20, 2023 12:20
screwyprof pushed a commit to screwyprof/mev-boost that referenced this pull request Feb 3, 2023
* Capella decode and fallback to bellatrix

* update attestant library
@metachris metachris mentioned this pull request Feb 16, 2023
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants